package com.zhu.service.edu.feign;

import com.zhu.commons.utils.R;
import com.zhu.service.edu.feign.fallback.AliyunVideoFallback;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "aliyun-video",fallback = AliyunVideoFallback.class)
public interface AliyunVodFeign {
    @DeleteMapping("admin/aliyun/video/delete/{id}")
    public R delete(@PathVariable("id") String id) throws Exception;

    @DeleteMapping("admin/aliyun/video/deleteList")
    public R deleteVideoList(@RequestBody List<String> IdList) throws Exception;
}

